package com.winter;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author JinHao
 * Date: 2023/10/08 17:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "cooperator")
public class CooperatorDTO {

    @Id
    private String cooperatorId;

    @Field
    private String cooperatorName;

    @Field
    private Date createTime;
}
